package cn.iune.erp.sale;

import java.text.ParseException;
import java.util.List;
import com.alibaba.fastjson.JSONObject;

public interface ISaleOrderDetailService {
	
	public void insert(SaleOrderDetail obj);
	
	public void delete(String fID);
	
	public void update(SaleOrderDetail obj);

	List<SaleOrderDetail> getAll();

	SaleOrderDetail getByID(String fID);


	List<SaleOrderDetail> getByStorageNo(String storageNo, String factoryNo, String enterpriseNo);

	int confirm(String fID);

	int active(String fID);

	int confirm(SaleOrderDetail sod);

	int active(SaleOrderDetail sod);

	int deleteByMasterID(String fMasterID);

	int confirmByMasterID(String fMasterID);

	int activeByMasterID(String fMasterID);

	int open(String fID);

	int close(String fID);

	int open(SaleOrderDetail sod);

	int close(SaleOrderDetail sod);

	int openByMasterID(String fMasterID);

	int closeByMasterID(String fMasterID);

	//审核通过，改变审核状态为confirm
	int agreeIt(SaleOrderDetail s);

	//审核通过，改变审核状态为confirm
	int agreeIt(String fID);

	//审核拒绝，改变审核状态为active
	int unAgree(SaleOrderDetail s);

	//审核拒绝，改变审核状态为active
	int unAgree(String fID);

	int agreeItByMasterID(String fMasterID);

	int unAgreeByMasterID(String fMasterID);


	List<SaleOrderDetail> getByMasterID(String fMasterID);

	SaleOrderDetail packing(SaleOrder saleOrder);

	int cancel(SaleOrderDetail sod);

	JSONObject save(JSONObject object) throws ParseException;

	JSONObject querySimple(JSONObject data) ;

	List<SaleOrderDetail> getByCustomerID(String CustomerID);

	SaleOrderDetail getByNo(String orderNo, String serialNo, String enterpriseNo);





}